// Use require.context to require reducers automatically
// Ref: https://webpack.js.org/guides/dependency-management/#require-context
const context = require.context("./", false, /\.js$/);
export default app =>
  context
    .keys()
    .filter(item => item !== "./index.js")
    .map(key => app.model(context(key).default));
